import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { OrderComponent } from './order/order.component';
import { OrderSettingComponent } from './order-setting/order-setting.component';
import { ReturnApplyComponent } from './return-apply/return-apply.component';
import { ReturnReasonComponent } from './return-reason/return-reason.component';

const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: 'order' },
  { path: 'order', component: OrderComponent, data: { breadcrumb: '订单管理' } },
  { path: 'orderSetting', component: OrderSettingComponent, data: { breadcrumb: '订单设置' } },
  { path: 'returnApply', component: ReturnApplyComponent, data: { breadcrumb: '退货申请管理' } },
  { path: 'returnReason', component: ReturnReasonComponent, data: { breadcrumb: '退货原因设置' } },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OmsRoutingModule { }
